package main.java.study.接口类被多个类实现;

import com.alibaba.druid.support.spring.stat.SpringStatUtils;
import main.java.study.接口类被多个类实现.impl.OneServiceImpl;
import org.springframework.context.ApplicationContext;

public class Demo {
    public static ApplicationContext applicationContext;

    public static void main(String[] args) {
        CommonInterface commonInterface = applicationContext.getBean("OneService", OneServiceImpl.class);
        commonInterface.currentDate();
    }
}
